package com.oocl.util;

import java.util.Date;

import com.oocl.constant.LogLevel;

public class ConsoleLogUtil {
	
	public static void log(String info,int level){
		switch (level) {
		case LogLevel.INFO:
			System.out.println("Info ["+DateUtil.dateToStr(new Date(), "HH:mm：ss")+"] "+info);
			break;
		case LogLevel.ERROR:
			System.err.println("Error ["+DateUtil.dateToStr(new Date(), "HH:mm：ss")+"] "+info);
			break;
		default:
			break;
		}
	}
}
